% TEST_ID: LANG-EXPAND-0088
% CATEGORY: stdlib/arithmetic_ops/triangle
% 测试 三角函数

function test_atan2d_atan2()

assert(abs(atan2d(2, 3) - 33.690067525979785) < 1e-12)
assert(abs(atan2d(-3, 1) - -71.565051177077990) < 1e-12)
assert(abs(atan2d(3, 3) - 45.0) < 1e-12)

assert(abs(atan2(2, 3) - 0.588002603547568) < 1e-12)
assert(abs(atan2(-3, 1) - -1.249045772398254) < 1e-12)
assert(abs(atan2(3, 3) - 0.785398163397448) < 1e-12)